package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.domain.ExExperimentSide;
import com.ruoyi.mapper.ExExperimentSideMapper;
import com.ruoyi.service.IExExperimentSideService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 学生实验子Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-21
 */
@Service
public class ExExperimentSideServiceImpl implements IExExperimentSideService
{
    @Autowired
    private ExExperimentSideMapper exExperimentSideMapper;

    /**
     * 查询学生实验子
     * 
     * @param id 学生实验子主键
     * @return 学生实验子
     */
    @Override
    public ExExperimentSide selectExExperimentSideById(Long id)
    {
        return exExperimentSideMapper.selectExExperimentSideById(id);
    }

    /**
     * 查询学生实验子列表
     * 
     * @param exExperimentSide 学生实验子
     * @return 学生实验子
     */
    @Override
    public List<ExExperimentSide> selectExExperimentSideList(ExExperimentSide exExperimentSide)
    {
        return exExperimentSideMapper.selectExExperimentSideList(exExperimentSide);
    }

    /**
     * 新增学生实验子
     * 
     * @param exExperimentSide 学生实验子
     * @return 结果
     */
    @Override
    public int insertExExperimentSide(ExExperimentSide exExperimentSide)
    {
        return exExperimentSideMapper.insertExExperimentSide(exExperimentSide);
    }

    /**
     * 修改学生实验子
     * 
     * @param exExperimentSide 学生实验子
     * @return 结果
     */
    @Override
    public int updateExExperimentSide(ExExperimentSide exExperimentSide)
    {
        return exExperimentSideMapper.updateExExperimentSide(exExperimentSide);
    }

    /**
     * 批量删除学生实验子
     * 
     * @param ids 需要删除的学生实验子主键
     * @return 结果
     */
    @Override
    public int deleteExExperimentSideByIds(Long[] ids)
    {
        return exExperimentSideMapper.deleteExExperimentSideByIds(ids);
    }

    /**
     * 删除学生实验子信息
     * 
     * @param id 学生实验子主键
     * @return 结果
     */
    @Override
    public int deleteExExperimentSideById(Long id)
    {
        return exExperimentSideMapper.deleteExExperimentSideById(id);
    }
}
